package DesignPattern.decorator;

/**
 * @Author self
 * @Date 2025/7/13 11:27
 * @Describe
 */
// 具体装饰器3：加奶油
class CreamDecorator extends CoffeeDecorator {

    public CreamDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public double cost() {
        return super.cost() + 0.7;
    }

    @Override
    public String description() {
        return super.description() + ", Cream";
    }
}
